<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'gameList.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
		function betInterval(){
			var objects=document.getElementsByName('count');
			for(i=0;i<objects.length;i++){
				objects[i].value=objects[i].value-1;
			}
			setTimeout('betInterval()',1000);
		}
		window.onload=betInterval;
	</script>

	</head>

	<body>
		<s:iterator value="gameDtos">
			<table>
				<tr>
					<td>
						<FONT size="6"><s:property value="gamename" /></FONT>
					</td>
					<s:iterator value="gameTableDtos" status="index">
						<tr>
							<td>
								&nbsp;&nbsp;&nbsp;&nbsp;
								<s:if test='status=="running"'>
								<a href="/newbingo/member/toGameTable.action?gtno=${gtno }"><s:property value="deskName" /></a>
								</s:if>
								<s:else>
									<s:property value="deskName" />
								</s:else>
							</td>
							<td>
								&nbsp;&nbsp;当前游戏期数:<s:property value="currentGame.pgnum" />
							</td>
							<td>
							离投注结束时间还有:
								<input name="count" onchange="betInterval(count${index.count })" value="${currentGame.endBettingInterval }" readonly="true"/>
							</td>
						</tr>
					</s:iterator>
				</tr>
			</table>
		</s:iterator>
	  <div><a href="member/memberInfo.jsp">查看个人信息</a></div>
	</body>
</html>
